import { Module, VuexModule, Mutation } from 'vuex-module-decorators'

@Module
export default class Order extends VuexModule {
  public orderId = '10';
  get orderSum () {
    return Number(this.orderId) * 2;
  }

  @Mutation
  public setOrderId (id: string): void {
    this.orderId = id;
  }
}
